home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / DJGPP / BCCGRX12.ZIP / contrib / bcc2grx / src / bccgrx14.c < prev    next >
C/C++ Source or Header  |  1993-05-03  |  1KB  |  33 lines

  1. /*
  2.  *  BCC2GRX  -  Interfacing Borland based graphics programs to LIBGRX
  3.  *  Copyright (C) 1993  Hartmut Schirmer
  4.  *
  5.  *  see bccgrx.c for details
  6.  */
  7.  
  8. #include "bccgrx00.h"
  9.  
  10. /* ----------------------------------------------------------------- */
  11. char *grapherrormsg(int errorcode)
  12. {
  13.   switch (errorcode) {
  14.     case grOk             : return "No error";
  15.     case grNoInitGraph    : return "graphics not initialized";
  16.     case grNotDetected    : return "Graphics hardware not detected";
  17.     case grFileNotFound   : return "Device driver file not found";
  18.     case grInvalidDriver  : return "Invalid device driver file";
  19.     case grNoLoadMem      : return "Not enough memory to load driver";
  20.     case grNoScanMem      : return "Out of memory in scan fill";
  21.     case grNoFloodMem     : return "Out of memory in flood fill";
  22.     case grFontNotFound   : return "Font file not found";
  23.     case grNoFontMem      : return "Not enough memory to load font";
  24.     case grInvalidMode    : return "Invalid graphics mode";
  25.     case grError          : return "Graphics error";
  26.     case grIOerror        : return "Graphics I/O error";
  27.     case grInvalidFont    : return "Invalid font file";
  28.     case grInvalidFontNum : return "Invalid font number";
  29.     case grInvalidVersion : return "Invalid File Version Number";
  30.   }
  31.   return "Unknown graphics error";
  32. }
  33.